package com.lfk.three.con;

import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.callback.Callback;

import java.util.Map;

/**
 * Created by liufengkai on 16/4/9.
 */
public class NetWorkHandler {

    public static void Get(String url, Callback callback, Map<String, String> params) {
        OkHttpUtils
                .get()
                .url(url)
                .params(params)
                .build()
                .execute(callback);
    }

    public static void Post(String url, Callback callback) {
        Post(url, callback, null);
    }

    public static void Post(String url, Callback callback, Map<String, String> params) {
        OkHttpUtils
                .post()
                .url(url)
                .params(params)
                .build()
                .execute(callback);
    }


}
